﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ItemEnterer
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            foreach (string s in System.IO.Directory.GetFiles(@"B:\Documents\Visual Studio 2010\Projects\MabiCommerce\MabiCommerce\data\icons\items"))
            {
                if (s.Contains("_"))
                    System.IO.File.Move(s, s.Replace("_", " "));
            }
            /*
            string s = "";
            do
            {
                string n, w, m;
                Console.Write("Enter item name: ");
                n = Console.ReadLine();
                Console.Write("Enter {0}'s weight: ", n);
                w = Console.ReadLine();
                Console.Write("Enter {0}'s Max Qty: ", n);
                m = Console.ReadLine();
                s += string.Format("      <Item Name=\"{0}\" Weight=\"{1}\" MaxQuantity=\"{2}\" />\r\n", n, w, m);

            } while (Console.ReadLine() != "n");
            System.Windows.Forms.Clipboard.SetText(s.Trim('\r', '\n'));
             * */
        }
    }
    /*
    struct Path
    {
        public Town T1;
        public Town T2;
        public int Length;
        public Path(Town one, Town two, int time)
        {
            T1 = one;
            T2 = two;
            Length = time;
        }
    }
    struct Town
    {
        public string Name;
        List<Path> Paths = new List<Path>();
        public Town(string n)
        {
            Name = n;
        }
    }
     * */
}
